import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import piniaPluginPersist from 'pinia-plugin-persist';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
//导入element icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import MyComponent from '@/components';
import 'es-drager/lib/style.css';
import Drager from 'es-drager';
createApp(App)
	.use(router)
	.use(createPinia().use(piniaPluginPersist))
	.use(MyComponent)
	.component('es-drager', Drager)
	.use(ElementPlus, {
		locale: zhCn
	})
	.use(ElementPlusIconsVue)
	.mount('#app');
